package com.scorpio.goods.vo;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class UpdateInventoryVo {

    @NotNull(message = "无效操作")
    private Long id;

    @NotNull(message = "初始库存无效")
    @Min(value = -99999, message = "变动值最大为-99999 ~ 99999")
    @Max(value = 99999, message = "变动值最大为-99999 ~ 99999")
    private Integer inventoryTotal;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getInventoryTotal() {
        return inventoryTotal;
    }

    public void setInventoryTotal(Integer inventoryTotal) {
        this.inventoryTotal = inventoryTotal;
    }
}
